LOCAL_PATH:= $(call my-dir)

#
# mpe_test
#

#$(call add-prebuilt-files, ETC, subtitle_cfg/style.xml)
#$(call add-prebuilt-files, ETC, subtitle_cfg/readme_fonts.txt)

include $(CLEAR_VARS)

CFG_CHIP_TYPE=hi3716cv101
CFG_BOARD_TYPE=hi3716cdmoverb

EXTRA_CFLAGS += -I$(LINUXROOT)/include
EXTRA_CFLAGS += -L$(TARGET_OUT)/lib \
                -DCHIP_TYPE_hi3716cv101 \
                -DBOARD_TYPE_hi3716cdmo

LOCAL_PRELINK_MODULE := false

#LOCAL_SRC_FILES:=               \
#    udp_data_procces.cpp     \
#    Demux.cpp		\
    
LOCAL_SRC_FILES:=               \
    guodian.c     \

LOCAL_CFLAGS += -DBOARD_TYPE_hi3716cdmo -DCHIP_TYPE_hi3716cv101 -ffast-math 
#LOCAL_CFLAGS += -DDEFAULT_USE_OPENCORE

ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
LOCAL_LDLIBS += -ldl -lpthread
endif


LOCAL_SHARED_LIBRARIES := liblog\
                            libutils \
                            liblog \
                            libhardware \
                            libc \
                            libhi_mpi \
                            libhi_common	\
                            libhi_ecs	\
                            libhardware_legacy	\
                            
                            

ifneq ($(TARGET_SIMULATOR),true)
LOCAL_SHARED_LIBRARIES += libdl
endif

LOCAL_C_INCLUDES :=                                                 \
	$(JNI_H_INCLUDE)                                                \
	$(call include-path-for, graphics corecg)                       \
	$(TOP)/external/opencore/extern_libs_v2/khronos/openmax/include \
	$(TOP)/frameworks/base/media/libstagefright/include             \
  $(TOP)/external/tremolo/Tremolo \
	$(TOP)/device/hisi/Hi3716C/driver/sdk/msp/component/player/include             \
	$(TOP)/device/hisi/Hi3716C/driver/sdk/msp_base/common/include \
	$(TOP)/device/hisi/Hi3716C/driver/sdk/msp_base/ha_codec/include \
	$(TOP)/device/hisi/Hi3716C/driver/sdk/msp_base/mpi/include \
	$(TOP)/device/hisi/Hi3716C/driver/sdk/dvb_demo/common/ \
	$(TOP)/device/hisi/Hi3716C/driver/sdk/msp_base/ecs/include \
	$(TOP)/device/hisi/Hi3716C/driver/sdk/msp/graphics/fb/include/ \
	$(TOP)/device/hisi/Hi3716C/driver/sdk/msp_base/graphics/bootmovie/higo/ \
	$(TOP)/external/display_api \
	$(TOP)/external/freetype/include \
  $(TOP)/external/libxml2/include \
  $(TOP)/external/icu4c/common 	\
  $(TOP)/frameworks/base/cdls/include			\
  $(TOP)/device/hisi/Hi3716C/driver/sdk/msp/ha_codec/include	\
  $(TOP)/device/hisi/Hi3716C/driver/sdk/dvb_demo/common	\
	$(TOP)/device/hisi/Hi3716C/driver/sdk/msp_base/mpi/api/include \
	$(TOP)/device/hisi/Hi3716C/driver/sdk/msp_base/mpi/drv/include \  
	
LOCAL_MODULE:= mainmain

include $(BUILD_EXECUTABLE)

